#region Using directives
using System;
using System.Data;
using WP.Commons;
#endregion

namespace WP.MF.DataEntity
{

    //=========  MInterCompanyLocation  ============================
    [System.ComponentModel.DesignerCategory("Code")]

    public class MInterCompanyLocationDEL : DataSet, IDataEntity
    {
        public const string TABLENAME_MINTERCOMPANYLOCATION = "mInterCompanyLocation";
        public const string RECID = "RecId";
        public const string RECSTAMP = "RecStamp";
        public const string COMPANYNAME = "CompanyName";
        public const string COMPANYDESC = "CompanyDesc";
        public const string SERVERNAME = "ServerName";
        public const string DATABASENAME = "DatabaseName";
        public const string LOCATIONNO = "LocationNo";
        public const string INTERCOMPANYFROMACCTNO = "InterCompanyFromAcctNo";
        public const string INTERCOMPANYFROMPROFITNO = "InterCompanyFromProfitNo";
        public const string INTERCOMPANYFROMBRANCHNO = "InterCompanyFromBranchNo";
        public const string INTERCOMPANYACCTNO = "InterCompanyAcctNo";
        public const string INTERCOMPANYPROFITNO = "InterCompanyProfitNo";
        public const string INTERCOMPANYBRANCHNO = "InterCompanyBranchNo";
        public const string INTERCOMPFUNDTRFACCTNO = "InterCompFundTrfAcctNo";
        public const string INTERCOMPFUNDTRFPROFITNO = "InterCompFundTrfProfitNo";
        public const string INTERCOMPFUNDTRFBRANCHNO = "InterCompFundTrfBranchNo";
        public const string BANKACCTNO = "BankAcctNo";
        public const string BANKPROFITNO = "BankProfitNo";
        public const string BANKBRANCHNO = "BankBranchNo";
        public const string COMBINEQRYORRPT = "CombineQryOrRpt";
        private System.Collections.Specialized.NameValueCollection mVarCollection = new System.Collections.Specialized.NameValueCollection();
        public System.Collections.Specialized.NameValueCollection VarCollection
        {
            get { return mVarCollection; }
            set { mVarCollection = value; }
        }


        public MInterCompanyLocationDEL()
        {
            CreateMInterCompanyLocationStructure();
        }

        public void CreateMInterCompanyLocationStructure()
        {
            DataTable table;
            DataColumnCollection DCC;
            DataColumn DC;
            table = new DataTable(TABLENAME_MINTERCOMPANYLOCATION);
            DCC = table.Columns;

            DC = new DataColumn(RECID, typeof(System.Int32));
            DCC.Add(DC);

            DC = new DataColumn(RECSTAMP, typeof(System.Byte[]));
            DCC.Add(DC);

            DC = new DataColumn(COMPANYNAME, typeof(System.String));
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(COMPANYDESC, typeof(System.String));
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(SERVERNAME, typeof(System.String));
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(DATABASENAME, typeof(System.String));
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(LOCATIONNO, typeof(System.String));
            DC.DefaultValue = "000";
            DCC.Add(DC);

            DC = new DataColumn(INTERCOMPANYFROMACCTNO, typeof(System.String));
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(INTERCOMPANYFROMPROFITNO, typeof(System.String));
            DC.DefaultValue = "000";
            DCC.Add(DC);

            DC = new DataColumn(INTERCOMPANYFROMBRANCHNO, typeof(System.String));
            DC.DefaultValue = "000";
            DCC.Add(DC);

            DC = new DataColumn(INTERCOMPANYACCTNO, typeof(System.String));
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(INTERCOMPANYPROFITNO, typeof(System.String));
            DC.DefaultValue = "000";
            DCC.Add(DC);

            DC = new DataColumn(INTERCOMPANYBRANCHNO, typeof(System.String));
            DC.DefaultValue = "000";
            DCC.Add(DC);

            DC = new DataColumn(INTERCOMPFUNDTRFACCTNO, typeof(System.String));
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(INTERCOMPFUNDTRFPROFITNO, typeof(System.String));
            DC.DefaultValue = "000";
            DCC.Add(DC);

            DC = new DataColumn(INTERCOMPFUNDTRFBRANCHNO, typeof(System.String));
            DC.DefaultValue = "000";
            DCC.Add(DC);

            DC = new DataColumn(BANKACCTNO, typeof(System.String));
            DC.DefaultValue = "";
            DCC.Add(DC);

            DC = new DataColumn(BANKPROFITNO, typeof(System.String));
            DC.DefaultValue = "000";
            DCC.Add(DC);

            DC = new DataColumn(BANKBRANCHNO, typeof(System.String));
            DC.DefaultValue = "000";
            DCC.Add(DC);

            DC = new DataColumn(COMBINEQRYORRPT, typeof(System.Boolean));
            DC.DefaultValue = 0;
            DCC.Add(DC);

            this.Tables.Add(table);
        }
    }
}
